<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../js/jquery.min.js"></script>
    <style>
      .con {
        width: 200px;
        height: 200px;
        background-color: #f55;
      }
    </style>
  </head>
  <body>
    <div id="btn">学科</div>
    <div class="con active" style="display: none">
      <p>我是语文</p>
      <p>我是数学</p>
      <p>我是英语</p>
      <p>我是生物</p>
    </div>

    <script>
      $("#btn").click(function () {
        $(this).css("color", "red");
        $(".active").css("display", "block");
      });
    </script>
  </body>
</html>
